<?php
namespace ZfcUser\Model;

class Torders
{
	public $order_id;
	public $user_id;
	public $ship_address;
	public $ship_city;
	public $ship_state;
	public $order_amount;
	public $create_date;
	public $email_id;
	
	public function exchangeArray($data)
	{
		$this->order_id	  		= (isset($data['order_id']))  		? $data['order_id']    		: null;
        $this->user_id 	  		= (isset($data['user_id'])) 		? $data['user_id'] 			: null;        
        $this->ship_address   	= (isset($data['ship_address']))  	? $data['ship_address']		: null;	
		$this->ship_city   		= (isset($data['ship_city']))  		? $data['ship_city']		: null;	
		$this->ship_state   	= (isset($data['ship_state']))  	? $data['ship_state']		: null;					
		$this->order_amount     = (isset($data['order_amount']))	? $data['order_amount']   	: null;	
		$this->create_date	  	= (isset($data['create_date']))  	? $data['create_date']    	: null;
		$this->email_id	  		= (isset($data['email_id']))  		? $data['email_id']    		: null;
             
    }
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}
}